package com.jeesite.modules.yl.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.yl.entity.YlWorker;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 工人信息表DAO接口
 * @author ccz
 * @version 2025-03-24
 */
@MyBatisDao
public interface YlWorkerDao extends CrudDao<YlWorker> {

    @Delete("delete from yl_worker where id = #{s}")
    void deleteList(@Param("s") String s);

    @Update("UPDATE yl_worker SET yl_status = '0';")
    void updateYlStatus();

    @Update("update yl_worker set yl_status = '1' where id = #{s}")
    void updateYlStatus1(@Param("s") String s);
}